package com.amox.uitest.adapter;

import org.dom4j.Element;

import com.amox.uitest.kit.LogKit;
import com.amox.uitest.tcase.BaseTestCase;

public class ReturnAdapter extends BaseAdapter<Boolean> {

	public ReturnAdapter(BaseTestCase uitest) {
		super(uitest);
	}

	@Override
	public Boolean adapter(Element element) throws Exception {
		String value = element.getStringValue();
		boolean obj = Boolean.valueOf(value);
		LogKit.printLog("return = " + obj);
		return obj;
	}

}
